<template>
  <div class="bg flex flex-end pr70 border-box align-center ">
    <div class="bg-white p10 br10 shadow-dark ">
      <p class="f15  text-primary ">"G" 物联智慧种植平台</p>
      <kdform :config="config" :model="model" class="pt15"></kdform>
    </div>
  </div>
</template>
<script setup>
import config from "./config.js";
import model from "./model.js";
import router from "../../router/router";
let userinfo = localStorage.getItem("userinfo") || "{}";
userinfo = JSON.parse(userinfo);
if (userinfo.time) {
  if (Date.now() - userinfo.time > 1000 * 5) {
    localStorage.removeItem("userinfo");
  } else {
    router.push("/index");
  }
}
</script>

<style scoped lang="scss    ">
  @import "../../scss/index.scss";
.bg {
  @include square(100%);
  background: url(@/assets/imgs/bg-login.jpg) no-repeat center / cover;
}
:deep(.el-input__suffix) {
  position: absolute;
  right: 8px;
}
</style>
